<?php
require_once('konfiguration.html');

$lines=file("english10000projectgutenberg.txt");
foreach ($lines as $line)
{   preg_match_all('/([a-zA-Z]*?) *?= *?[0-9.]+/',$line,$matches,PREG_PATTERN_ORDER);
    $words=$matches[1];
	print_r($matches[1]);
    foreach ($words as $word)
	{   $index++;
	    $query="INSERT INTO mostcommonwords VALUES ('english','$word',$index)";
		mysql_query($query);
	    
	
	}
}